管理员界面-客户信息维护页面

<div><button>添加客户</button></div>
<table>
    <thead>
        <td>id</td>
        <td>昵称</td>
        <td>密码</td>
        <td>操作</td>
    </thead>
    {% for user in customer_list %}
    <tr>
        <td><a href="/auth/customer/{{user.uid}}">{{ user.uid }}</a></td>
        <td >{{ user.username }}</td>
        <td> {{ user.password }} </td>
        <td > <button  onclick="delete_user(this)" value="{{user.uid}}">删除</button> </td>
    </tr>
    <script type="text/javascript" src="{{ url_for('static', filename='js/jquery-1.8.2.min.js')}}"></script>
    <script>
        function delete_user(elem){
            alert("发送POST请求,后台执行delete_customer("+elem.value+")")
            $.get("/auth/delete_customer/"+elem.value,function(data){
                console.log(data)
                if( data ){
                    alert("已经删除该用户！");
                    location.reload();
                }else{
                    alert("数据库中无法找到该用户！");
                }
             });
        }
    </script>
    {% endfor %}

</table>
